package xyz.jcat.sca.example.lagou.deliver.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.jcat.sca.example.lagou.deliver.feign.ResumeFeignClient;
import xyz.jcat.common.web.Resp;

@RestController
@RequestMapping("/nacos")
public class NacosTestController {

    @Autowired
    private ResumeFeignClient resumeFeignClient;

    @GetMapping("/cluster")
    public Resp getClusterName() {
        return resumeFeignClient.getClusterName();
    }
}
